//@import '~antd/dist/antd.css';

$title-background: $background-title;
div,span,h1,h2,h3,h4,h5,h6,p,textarea, :after, :before{
  word-break: break-word;
}
body{
  font-family: "lucida grande", "lucida sans unicode", lucida, helvetica, "Hiragino Sans GB", "Microsoft YaHei", "WenQuanYi Micro Hei", sans-serif;
}

#app{
  height: 100vh;
  min-width: 1024px;
  overflow-x: auto;
}
.ant-tag { font-size: 12px; }
body .antd-pro-tag-select-tagSelect .ant-tag { font-size: 12px; }
.ant-tabs-nav{
  .ant-tabs-tab{
    text-align: center;
    margin-right: 4px !important;
  }
}

.ant-select-selection--multiple{
  .ant-select-selection__rendered{
    ul{
      display: flex;
      width: 100%\0;
      height: 30px\0;
      overflow: auto\0;
      overflow: hidden;
    }
  }
  .ant-select-selection__rendered:after{ display: none; }
  .ant-select-selection__placeholder { top: 14px; }
}
.ant-menu-vertical .ant-menu-item,
.ant-menu-vertical-left .ant-menu-item,
.ant-menu-vertical-right .ant-menu-item,
.ant-menu-inline .ant-menu-item,
.ant-menu-vertical .ant-menu-submenu-title,
.ant-menu-vertical-left .ant-menu-submenu-title,
.ant-menu-vertical-right .ant-menu-submenu-title,
.ant-menu-inline .ant-menu-submenu-title {
  margin-top: 0;
  margin-bottom: 0;
}
.ant-menu-vertical .ant-menu-item:not(:last-child),
.ant-menu-vertical-left .ant-menu-item:not(:last-child),
.ant-menu-vertical-right .ant-menu-item:not(:last-child),
.ant-menu-inline .ant-menu-item:not(:last-child) {
  margin-bottom: 0;
}
.ant-menu-item .anticon,
.ant-menu-submenu-title .anticon {
  margin-right: 12px;
  font-size: 16px;
}
.ant-menu-dark .ant-menu-submenu-title .ant-menu-submenu-arrow,
.ant-menu-dark .ant-menu-sub .ant-menu-submenu-title .ant-menu-submenu-arrow {
  transform:rotate(-90deg);
  -ms-transform:rotate(-90deg);
  -moz-transform:rotate(-90deg);
  -webkit-transform:rotate(-90deg);
  -o-transform:rotate(-90deg);
}
.ant-menu-dark .ant-menu-submenu-open .ant-menu-submenu-arrow {
  transform:rotate(-180deg);
  -ms-transform:rotate(-180deg);
  -moz-transform:rotate(-180deg);
  -webkit-transform:rotate(-180deg);
}
.ant-menu-vertical > .ant-menu-item,
.ant-menu-vertical-left > .ant-menu-item,
.ant-menu-vertical-right > .ant-menu-item,
.ant-menu-inline > .ant-menu-item {
  height: 40px;
  line-height: 40px;
}
.ant-menu-vertical > .ant-menu-submenu > .ant-menu-submenu-title,
.ant-menu-vertical-left > .ant-menu-submenu > .ant-menu-submenu-title,
.ant-menu-vertical-right > .ant-menu-submenu > .ant-menu-submenu-title,
.ant-menu-inline > .ant-menu-submenu > .ant-menu-submenu-title {
  height: 48px;
  line-height: 48px;
}
.collapsed-menu.ant-menu-dark .ant-menu-item{
  &:first-child{
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
  }
  &:last-child{
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
  }
}
.collapsed-menu.ant-menu-dark { left: 80px !important; }
.ant-tabs.ant-tabs-card > .ant-tabs-bar .ant-tabs-nav-container { height: 32px; }
.ant-tabs.ant-tabs-card>.ant-tabs-bar .ant-tabs-tab { line-height: 30px; }
.ant-select-selection--multiple > ul > li, .ant-select-selection--multiple .ant-select-selection__rendered > ul > li {
  margin-top: 5px;
  height: 20px;
  line-height: 20px;
  font-size: 12px;
}
.ant-confirm-body .ant-confirm-title {
  display: block;
  margin-left: 38px;
}

.header-title {
  font-style: normal;
  font-size: 20px;
  color: $font-title;
  margin-bottom: 24px;
}

.table-header{
  width: 100%;
  position: relative;
  margin-top: 16px;
  clear: both;
  .table-header-title{
    width: 100%;
    font-size: 12px;
    padding: 8px 0;
    span{
      color: $font-disabled;
    }
    button span{
      color: inherit;
    }
  }
  .table-header-buttons{
    margin-bottom: 10px;
    .ant-dropdown-button{
      button{
        margin-right: 0;
      }
      .ant-dropdown-trigger{
        margin-right: 8px;
      }
    }
    button{
      margin-right: 8px;
    }
    .ant-input-suffix button{
      margin-right: 0px;
    }
  }
  .ant-table-thead > tr > th > span{
    color: $font-default !important;
  }
}


.common-transfer{
  .ant-transfer-list-header-selected{
    display: none;
  }
}

.common-top-area{
  padding: 16px;
  width: 100%;
  background: $title-background;
  border-radius: 6px;
  .common-top-area-title{
    height: 40px;
    width: 100%;
    line-height: 40px;
    border-bottom: 1px solid #EEEEEE;
    color: $font-title;
    font-size: 14px;
    font-weight: bold;
  }
  .common-top-area-content{
    width: 100%;
    padding: 16px 0;
  }
}

.common-item-title{
  height: 40px;
  line-height: 40px;
  width: 100%;
  padding: 0 10px;
  font-weight: bold;
  font-size: 14px;
  color: $font-title;
  background: $title-background;
  margin-bottom: 24px;
}

.slide-footer{
  position: absolute;
  bottom: 0;
  left: 0;
  height: 60px;
  line-height: 60px;
  width: 100%;
  border-top: 1px solid #e9e9e9;
  text-align: center;
  background: #fff;
  button{
    margin: 0 5px;
  }
}

.ant-modal-wrap  {
  text-align: center;
}
.ant-popover{
  max-width: 500px;
  word-break:break-all;
}
.ant-modal-wrap:before {
  content: '';
  display: inline-block;
  height: 100%;
  vertical-align: middle;
  width: 0;
}

.ant-modal-wrap .ant-modal {
  display: inline-block;
  vertical-align: middle;
  top: 0;
  text-align: left;
}

.ant-table-bordered .ant-table-thead > tr > th, .ant-table-bordered .ant-table-tbody > .ant-table-row > td {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bad-table-cell {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  word-wrap: break-word;
  word-break: break-all;
}

.back{
  font-size: 14px;
  margin: 20px 0;
  display: inline-block;
}

.divider{
  width: calc(100% + 40px);
  background: $background-layout;
  height: 10px;
  margin: 20px -20px;
}

.background-transparent{
  background: $background-layout;
  margin: -27px -20px -20px -20px;
  padding: 20px;
  //min-height: calc(100% + 27px);
}
.background-transparent-no-padding{
  background: $background-layout;
  margin: -27px -20px 0 -20px;
  min-height: calc(100% + 27px);
}

.full-height-page {
  width: calc(100% + 40px);
  margin: -27px -20px -20px;
  height: calc(100vh - 80px);
}

table{
  table-layout: fixed;
  .money-cell{
    width: 100%;
    display: inline-block;
    text-align: right;
  }
  .center-icon{
    text-align: center;
    i{
      cursor: pointer;
      transition: transform .5s ease;
    }
    i:hover{
      -webkit-transform: scale(1.5);
      -moz-transform: scale(1.5);
      -ms-transform: scale(1.5);
      -o-transform: scale(1.5);
      transform: scale(1.5);
    }
  }
}

.form-title{
  margin-top:16px;
  margin-bottom:2px;
}

.list-selector .ant-modal-body{
  padding-top: 12px;
  height: auto;
  max-height: 70vh;
  overflow-y: scroll;
  .filter-tags {
    margin-bottom: 6px;
  }
  .selected-tag{
    line-height: 30px;
    max-height: 90px;
    overflow: auto;
    .ant-tag:hover { border-color: $default-color-hover; }
  }
  .table-header{
    position: static;
    margin-top: 0;
    margin-bottom: 10px;
    height: 30px;
    line-height: 30px;
  }
  .table-header-title{
    width: auto;
    font-size: 12px;
    padding: 0;
  }
  .ant-table-wrapper{clear: both;}
  .ant-table{
    clear: both;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    table{
      border-top-left-radius: 0;
      border-top-right-radius: 0;
    }
  }
  .ant-popover{ max-width: 800px;}
  .ant-table-tbody{
    cursor: pointer;
  }
  .common-top-area{
    margin-bottom: 10px;
  }
  .ant-table-thead th{
    background: $background-title;
  }
}

.list-searcher .ant-modal-body{
  .selected-tag{
    line-height: 30px;
    max-height: 90px;
    overflow: auto;
    padding: 0 10px;
    margin-bottom: 18px;
    .ant-tag:hover { border-color: $default-color-hover; }
  }
  .searcher-list{
    height: calc(100% - 170px);
    &.no-show-detail {
      height: calc(100% - 70px);
    }
    overflow-y: auto;
    width: 100%;
    .searcher-list-item{
      position: relative;
      min-height: 30px;
      line-height: 16px;
      padding: 7px 20px;
      cursor: pointer;
      background-clip: content-box;
      &.selected{
        background: $highlight-selected
      }
      &:hover{
        background: $highlight-default;
      }
      .searcher-list-item-name{
        width: calc(100% - 50px);
        white-space: normal;
        .target-key{
          color: $default-color-inverse;
        }
        .searcher-list-item-description{
          font-size: 12px;
          color: $font-disabled;
        }
      }
      .searcher-list-item-check{
        position: absolute;
        right: 20px;
        top: 50%;
        color: $default-color;
        -webkit-transform: translateY(-50%);
        -moz-transform: translateY(-50%);
        -ms-transform: translateY(-50%);
        -o-transform: translateY(-50%);
        transform: translateY(-50%);
      }
    }
  }
}

.ant-dropdown-menu-item{ text-align: center; }
.hide{ display: none; }

.ant-confirm-body .ant-confirm-content{
  white-space: normal;
  word-wrap: break-word;
}

.footer-operate{
  position: absolute;
  bottom: 0;
  left: -20px;
  right: -20px;
  height: 64px;
  line-height: 64px;
  box-shadow: 0px -5px 5px rgba(0, 0, 0, 0.067);
  padding-left: 20px;
}

.base {
  box-sizing: content-box;
  height: 9em;
  left: 50%;
  margin: -7.5em;
  padding: 3em;
  position: absolute;
  top: 50%;
  width: 9em;
  transform: rotateX(45deg) rotateZ(45deg);
  transform-style: preserve-3d;

  .cube,
  .cube:after,
  .cube:before {
    content: '';
    float: left;
    height: 3em;
    position: absolute;
    width: 3em;
  }

  .cube {
    background-color: $default-color;
    position: relative;
    transform: translateZ(3em);
    transform-style: preserve-3d;
    transition: .25s;
    box-shadow: 13em 13em 1.5em rgba(0, 0, 0, 0.1);
    animation: anim 1s infinite;
  }
  .cube:after {
    background-color: $default-color-hover;
    transform: rotateX(-90deg) translateY(3em);
    transform-origin: 100% 100%;
  }
  .cube:before {
    background-color: $default-color-focus;
    transform: rotateY(90deg) translateX(3em);
    transform-origin: 100% 0;
  }
  .cube:nth-child(1) {
    animation-delay: 0.05s;
  }
  .cube:nth-child(2) {
    animation-delay: 0.1s;
  }
  .cube:nth-child(3) {
    animation-delay: 0.15s;
  }
  .cube:nth-child(4) {
    animation-delay: 0.2s;
  }
  .cube:nth-child(5) {
    animation-delay: 0.25s;
  }
  .cube:nth-child(6) {
    animation-delay: 0.3s;
  }
  .cube:nth-child(7) {
    animation-delay: 0.35s;
  }
  .cube:nth-child(8) {
    animation-delay: 0.4s;
  }
  .cube:nth-child(9) {
    animation-delay: 0.45s;
  }
}

@keyframes anim {
  50% {
    transform: translateZ(0.5em);
  }
}

.braft-modal-root.active .braft-modal-content {
  transform: translate(-50%, -50%);
  height: 80vh;
  .braft-modal-body {
    height: calc(100% - 110px);
    .braft-media-picker, .braft-media-uploader {
      height: 100%;
      .braft-media-drag-tip {
        position: absolute;
        margin-top: 0;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
      }
    }
  }
}

.f-left{
  float: left;
}
.f-right{
  float: right;
}
.clear{
  clear: both;
}

.ant-form-item-label { white-space: normal; }
.row-expand-display-none{
  & + .ant-table-expanded-row {
    display: none;
  }
  .ant-table-row-expand-icon {
    display: none;
  }
}

.ant-message{ z-index: 100000 }

.searcher-content-list{
  height: calc(70vh - 240px);
  &.no-show-detail{
    height: calc(70vh - 120px);
  }
  overflow-y: auto;
  width: 100%;
  .searcher-list-item{
    position: relative;
    min-height: 30px;
    line-height: 16px;
    padding: 7px 20px;
    cursor: pointer;
    background-clip: content-box;
    &.selected{
      background: $highlight-selected
    }
    &:hover{
      background: $highlight-default;
    }
    .searcher-list-item-name{
      width: calc(100% - 50px);
      white-space: normal;
      .target-key{
        color: $default-color-inverse;
      }
      .searcher-list-item-description{
        font-size: 12px;
        color: $font-disabled;
      }
    }
    .searcher-list-item-check{
      position: absolute;
      right: 20px;
      top: 50%;
      color: $default-color;
      -webkit-transform: translateY(-50%);
      -moz-transform: translateY(-50%);
      -ms-transform: translateY(-50%);
      -o-transform: translateY(-50%);
      transform: translateY(-50%);
    }
  }
}

.no-hover-style:hover{
  td{
    background: none !important;
  }
}

.carousel-modal{
  max-height: 60vh;
  overflow: auto;
  img{
    width: 100%;
  }
  .image-wrap{
    img{
      width: 100%;
    }
  }
}

.ant-table-body td>.ant-tag{
  // #TES-707 列表操作按钮宽度限制
  // width: 100%;
  padding-left: 20px;
  padding-right: 20px;
  text-align: center;
  height: 26px;
  line-height: 24px;
}

.helios-page-header{
  background: $background-white;
  margin: -28px 0 20px -16px;
  padding: 20px;
  position: relative;
  left: -20px;
  width: calc(100% + 72px);
}

.normal-dangerously-font{
  color: $default-color;
  margin: 0px 3px;
}

.full-screen-mask:after {
  content: '';
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 998;
}

.ant-select-combobox .ant-select-arrow {
  display: block;
}

.bottom-bar{
  -webkit-transition: all 0.15s cubic-bezier(0.645, 0.045, 0.355, 1);
  -moz-transition: all 0.15s cubic-bezier(0.645, 0.045, 0.355, 1);
  -ms-transition: all 0.15s cubic-bezier(0.645, 0.045, 0.355, 1);
  -o-transition: all 0.15s cubic-bezier(0.645, 0.045, 0.355, 1);
  transition: all 0.15s cubic-bezier(0.645, 0.045, 0.355, 1);
}
.collapsed .bottom-bar {
  width: calc(100% - 80px) !important;
}
.collapsed .bottom-bar-approve {
  width: calc(100% - 80px) !important;
}
.collapsed .additional-alert-info {
  width: calc(100% - 80px) !important;
}
.not-collapsed .bottom-bar {
  width: calc(100% - 206px) !important;
}
p.reset-margin-bottom { margin-bottom: 0; }
.refund-rule-wrapper {
  font-size: 10px;
  .rule-label {
    font-weight: bold;
    color: #1e2126;
  }
}
.red-with-star:before{
  display: inline-block;
  margin-right: 4px;
  color: #f5222d;
  font-size: 14px;
  font-family: SimSun,sans-serif;
  line-height: 1;
  content: '*';
}

.rightInputNumber {
  .ant-input-number-input {
    text-align: right;
  }
  .ant-input-number-handler-wrap {
    display: none;
  }
}
.auth-modal-box {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  img {
    display: inline-block;
    width: 50px;
    height: 50px;
  }
  p {
    font-size: 16px;
    color: #000;
    margin-top: 20px;
    margin-bottom: 20px;
  }
  .box-content {
    width: 95%;
    padding: 10px;
    background: rgb(245,246,249);
    display: flex;
    flex-direction: column;
    align-items: center;
    div {
      color: #000;
      font-size: 14px;
    }
    .content-list {
      width: 100%;
      padding: 10px;
      display: flex;
      flex-direction: column;
      color: rgb(71, 78, 97);
      font-size: 13px;
      div {
        margin-top: 10px;
      }
    }
  }
}
.ant-tag-has-color {
  width: 90px !important;
}
.relayPopover {
  
}
